package xyz.mumuwei.youthcourseserver.common.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author mumuwei
 * @date 2022/2/20
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class LoginUserDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotBlank(message = "用户名不能为空")
    @Size(min = 6, message = "用户名长度不能少于6位")
    private String username;
    @Size(min = 6, message = "密码长度不能少于6位")
    private String password;
    @Size(min = 6, max = 6, message = "验证码长度应为6位整数")
    private String verify;
}
